package com.yuan.yblog.portal;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import java.text.SimpleDateFormat;
import java.util.Date;


@SpringBootApplication(scanBasePackages = "com.yuan.yblog")
@EnableAspectJAutoProxy/*开启aop功能*/
public class YblogPortalApplication {
    public static void main(String[] args) {
        // 启动
        SpringApplication.run(YblogPortalApplication.class, args);

        // 查看
        System.out.print("启动时间："+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        System.out.print("\t项目入口：http://127.0.0.1:8080");
        System.out.println("\tSwagger-UI入口：http://127.0.0.1:8080/swagger-ui/index.html");
    }
}
